package com.central.dataManage.model;

import com.central.common.model.TableInfo;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @author Tindy
 * @date 2021/7/5
 * @describe
 */
@Setter
@Getter
public class CreateTableEntity implements Serializable{
    @ApiModelProperty("数据库id")
    private Long databaseId;
    @ApiModelProperty("申请理由")
    private String reason;
    @ApiModelProperty("建表类型  sql/visual")
    private String type;
    @ApiModelProperty("sql 形式建表的 ddl")
    private String ddl;
    @ApiModelProperty("visual 形式建表的 tableInfo")
    private TableInfo tableInfo;
    @ApiModelProperty("预览数据  json  {字段1:v1,字段2:v2...}")
    private String previewData;
}
